<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/jquery.js"></script>
    <style type="text/css">
        * {
            margin: 0;
            padding: 0;
            font-size: 12px;
        }

        ul {
            list-style: none;
        }

        a {
            text-decoration: none;
        }

        .wrapper {
            width: 298px;
            height: 248px;
            margin: 100px auto 0;
            border: 1px solid pink;
            overflow: hidden;
        }

        #left,
        #center,
        #right {
            float: left;
        }

        #left li,
        #right li {
            background: url(images/lili.jpg) repeat-x;
        }

        #left li a,
        #right li a {
            display: block;
            width: 48px;
            height: 27px;
            border-bottom: 1px solid pink;
            line-height: 27px;
            text-align: center;
            color: black;
        }

        #left li a:hover,
        #right li a:hover {
            background-image: url(images/abg.gif);
        }

        #center {
            border-left: 1px solid pink;
            border-right: 1px solid pink;
        }
    </style>
</head>
<body>
    <div class="wrapper">

        <ul id="left">
            <li>
                <a href="#">女靴</a>
            </li>
            <li>
                <a href="#">雪地靴</a>
            </li>
            <li>
                <a href="#">冬裙</a>
            </li>
            <li>
                <a href="#">呢大衣</a>
            </li>
            <li>
                <a href="#">毛衣</a>
            </li>
            <li>
                <a href="#">棉服</a>
            </li>
            <li>
                <a href="#">女裤</a>
            </li>
            <li>
                <a href="#">羽绒服</a>
            </li>
            <li>
                <a href="#">牛仔裤</a>
            </li>
        </ul>
        <ul id="center">
            <li>
                <a href="#"><img src="images/女靴.jpg" width="200" height="250" /></a>
            </li>
            <li>
                <a href="#"><img src="images/雪地靴.jpg" width="200" height="250" /></a>
            </li>
            <li>
                <a href="#"><img src="images/冬裙.jpg" width="200" height="250" /></a>
            </li>
            <li>
                <a href="#"><img src="images/呢大衣.jpg" width="200" height="250" /></a>
            </li>
            <li>
                <a href="#"><img src="images/毛衣.jpg" width="200" height="250" /></a>
            </li>
            <li>
                <a href="#"><img src="images/棉服.jpg" width="200" height="250" /></a>
            </li>
            <li>
                <a href="#"><img src="images/女裤.jpg" width="200" height="250" /></a>
            </li>
            <li>
                <a href="#"><img src="images/羽绒服.jpg" width="200" height="250" /></a>
            </li>
            <li>
                <a href="#"><img src="images/牛仔裤.jpg" width="200" height="250" /></a>
            </li>

            <li>
                <a href="#"><img src="images/女包.jpg" width="200" height="250" /></a>
            </li>
            <li>
                <a href="#"><img src="images/男包.jpg" width="200" height="250" /></a>
            </li>
            <li>
                <a href="#"><img src="images/登山鞋.jpg" width="200" height="250" /></a>
            </li>
            <li>
                <a href="#"><img src="images/皮带.jpg" width="200" height="250" /></a>
            </li>
            <li>
                <a href="#"><img src="images/围巾.jpg" width="200" height="250" /></a>
            </li>
            <li>
                <a href="#"><img src="images/皮衣.jpg" width="200" height="250" /></a>
            </li>
            <li>
                <a href="#"><img src="images/男毛衣.jpg" width="200" height="250" /></a>
            </li>
            <li>
                <a href="#"><img src="images/男棉服.jpg" width="200" height="250" /></a>
            </li>
            <li>
                <a href="#"><img src="images/男靴.jpg" width="200" height="250" /></a>
            </li>
        </ul>
        <ul id="right">
            <li>
                <a href="#">女包</a>
            </li>
            <li>
                <a href="#">男包</a>
            </li>
            <li>
                <a href="#">登山鞋</a>
            </li>
            <li>
                <a href="#">皮带</a>
            </li>
            <li>
                <a href="#">围巾</a>
            </li>
            <li>
                <a href="#">皮衣</a>
            </li>
            <li>
                <a href="#">男毛衣</a>
            </li>
            <li>
                <a href="#">男棉服</a>
            </li>
            <li>
                <a href="#">男靴</a>
            </li>
        </ul>

    </div>
    <script>
        $.fn.extend({
            tab(){
                let self=this;
                this.find("#left>li").mouseenter(function(){
                    var $index=$(this).index();
                    self.find("#center>li").eq($index).show().siblings().hide();
                })
                this.find("#right>li").mouseenter(function(){
                    var $index=$(this).index()+9;
                    self.find("#center>li").eq($index).show().siblings().hide();
                })
            }
        })


        $(function(){
            $(".wrapper").tab()
        })
    </script>
</body>
</html>